<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'style_block', 'editors/radio_edit.tpl', 8, false),)), $this); ?>
<div
    data-editor="true"
    data-editor-class="RadioGroup"
    data-editor-name-"<?php echo $this->_tpl_vars['RadioEdit']->GetName(); ?>
"
    data-field-name="<?php echo $this->_tpl_vars['RadioEdit']->GetFieldName(); ?>
"
    data-editable="<?php if ($this->_tpl_vars['RadioEdit']->GetReadOnly()): ?>false<?php else: ?>true<?php endif; ?>"
    id="<?php echo $this->_tpl_vars['RadioEdit']->GetName(); ?>
"
    <?php $this->_tag_stack[] = array('style_block', array()); $_block_repeat=true;smarty_block_style_block($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
        <?php echo $this->_tpl_vars['RadioEdit']->GetCustomAttributes(); ?>

    <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_style_block($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
    >
<?php if (! $this->_tpl_vars['RadioEdit']->GetReadOnly()): ?>
<?php $_from = $this->_tpl_vars['RadioEdit']->GetValues(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['Value'] => $this->_tpl_vars['Name']):
?>

<label><input name="<?php echo $this->_tpl_vars['RadioEdit']->GetName(); ?>
" value="<?php echo $this->_tpl_vars['Value']; ?>
"<?php if ($this->_tpl_vars['RadioEdit']->GetSelectedValue() == $this->_tpl_vars['Value']): ?> checked="checked"<?php endif; ?> type="radio" <?php echo $this->_tpl_vars['Validators']['InputAttributes']; ?>
><?php echo $this->_tpl_vars['Name']; ?>
</label>

<?php endforeach; endif; unset($_from); ?>
<?php else: ?>
<?php $_from = $this->_tpl_vars['RadioEdit']->GetValues(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['Value'] => $this->_tpl_vars['Name']):
?>
<?php if ($this->_tpl_vars['RadioEdit']->GetSelectedValue() == $this->_tpl_vars['Value']): ?><?php echo $this->_tpl_vars['Name']; ?>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<?php endif; ?>
</div>